package com.example.demo.p;
/**
* @description: TODO
* @author 杨镇宇
* @date 2022/3/29 19:45
* @version 1.0
*/

public class TestA {
    public static void main(String[] args) {
        String str = "xx";
        String str1 ="x"+"x";
        String str2=str+"";
        String str3=new String("xx");

//        System.out.println(str == str1);
//        System.out.println(str == str2);
//        System.out.println(str == str3);
        String num = "9.11";
        String regex = "^\\+?([1-9]+\\.\\d{2}+|0\\.\\d*[1-9])$";

        System.out.println(num.matches(regex));


    }
}
